package com.qfedu.sem.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import wo.department.po.Staff;

@Entity
@Table(name="bug_log")
public class BugLog {
	private static Logger LOG = LogManager.getLogger(BugLog.class);

	@Id
	private String id;
	
	private String node; //节点
	
	@ManyToOne
	@JoinColumn(name="bug_id")
	private Bug bug; //故障
	
	@ManyToOne
	@JoinColumn(name="processer_id")
	private Staff processer; //处理人
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date processTime; //处理时间
	
	@Column(length = 2000)
	private String content; //处理内容
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNode() {
		return node;
	}

	public void setNode(String node) {
		this.node = node;
	}

	public Bug getBug() {
		return bug;
	}

	public void setBug(Bug bug) {
		this.bug = bug;
	}

	public Staff getProcesser() {
		return processer;
	}

	public void setProcesser(Staff processer) {
		this.processer = processer;
	}

	public Date getProcessTime() {
		return processTime;
	}

	public void setProcessTime(Date processTime) {
		this.processTime = processTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
